<?php
/**
 * Created by PhpStorm.
 * User: guo
 * Date: 2017/6/13
 * Time: 22:15
 */

/**
 * 输出对应的变量或者数组
 *
 * @param $var
 */
function p($var)
{
    echo '<pre>';
    if(is_bool($var))
    {
        var_dump($var);
    }elseif (is_null($var))
    {
        var_dump(null);
    }else
    {
        print_r($var);
    }
}